package com.neuralnoise.hibernate.liveJournal;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

@MappedSuperclass
public abstract class AbstractProfile implements java.io.Serializable {

	private static final long serialVersionUID = -5133390791292307300L;

	private String journal;
	private String foaf;

	public AbstractProfile() { }

	public AbstractProfile(String journal) {
		this.journal = journal;
	}

	public AbstractProfile(String journal, String foaf) {
		this.journal = journal;
		this.foaf = foaf;
	}

	@Id
	@Column(name = "journal", nullable = false, length = 32)
	public String getJournal() {
		return this.journal;
	}

	public void setJournal(String journal) {
		this.journal = journal;
	}

	@Column(name = "FOAF", length = 65535)
	public String getFoaf() {
		return this.foaf;
	}

	public void setFoaf(String foaf) {
		this.foaf = foaf;
	}

}